<?php

namespace App\Http\Middleware;
use Illuminate\Routing\Route;

use Closure;

class SystemMenu
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @param  string|null  $guard
     * @return mixed
     */
    public function handle($request, Closure $next )
    {
       // echo route('a')->getActionName();

/*
        view()->share('systemMenu',"");// 这句必须放在前面 后面就不行
        $response = $next($request);

        return $response;*/
        return $next($request);
    }
}
